import { Service } from 'egg';

export default class User extends Service {
  async create(user: any) {
    await this.app.mysql.insert('user', user);
  }

  async get(user: any) {
    console.log('user', user);
    let res = await this.app.mysql.get('user', user);
    console.log('get', res);
    return res;
  }
}
